weights = []
while True:
    weight = input("请输入一个小朋友的体重（输入q结束输入）：")
    if weight == 'q':
        break
    weights.append(float(weight))
average_weight = sum(weights) / len(weights)
print("小朋友们的平均体重为：", average_weight)
print("比平均体重更重的小朋友有：")
for weight in weights:
    if weight > average_weight:
        print(weight)